﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Nova.Parsing.Tokens;
using Nova.Parsing.GoldParser.Semantic;

namespace Nova.Parsing.Constructs
{
    public abstract class VariableConstruct : NovaConstruct
    {
    }

    public sealed class Variable : VariableConstruct
    {
        private string m_VarName;

        [Rule(@"<Variable Iden> ::= Identifier")]
        public Variable(Identifier identifier)
        {
            m_VarName = identifier.Value.ToString();
        }

        public string VarName
        {
            get { return m_VarName; }
        }
    }
}
